<template>
	<view class="">
		<view style="width: 100vw;height: 100vh;background-color: #F2F2F2;" v-if="judge==2">
			<u-navbar title="预约看房" :bgColor="bgColor" leftIconSize='0px' placeholder='true'
				titleStyle='font-weight: bold;'>
			</u-navbar>
			<view style="display: flex;justify-content: center;margin-top: 10px;">
				<image src="https://www.gzxwsz.com/profile/upload/20241114111636.png" mode="widthFix"
					style="width: 30vw;">
				</image>
			</view>
			<view style="text-align: center;">
				预约成功
			</view>
			<view style="text-align: center;color: #999999;font-size: 10px;margin-top: 5px;">
				祝您早日找到您满意的住所～
			</view>
			<view style="width: 80vw;margin: 0 auto;background-color: #FCDF30;margin-top: 60px;">
				<button @click="huidao" style="background-color: #FCDF30;font-size: 12px;">回到首页</button>
			</view>
		</view>
		<view style="width: 100vw;height: 100vh;background-color: #F2F2F2;" v-else-if="judge==3">
			<u-navbar title="合同签订成功" :bgColor="bgColor" leftIconSize='0px' placeholder='true'
				titleStyle='font-weight: bold;'>
			</u-navbar>
			<view style="display: flex;justify-content: center;margin-top: 10px;">
				<image src="https://www.gzxwsz.com/profile/upload/20241114111636.png" mode="widthFix"
					style="width: 30vw;">
				</image>
			</view>
			<view style="text-align: center;">
				恭喜您完成合同的签订
			</view>
			<view style="text-align: center;color: #999999;font-size: 10px;margin-top: 5px;">
				感谢您对我们平台的支持
			</view>
			<view style="width: 80vw;margin: 0 auto;background-color: #FCDF30;margin-top: 60px;">
				<button @click="huidao" style="background-color: #FCDF30;font-size: 12px;">回到首页</button>
			</view>
		</view>
		<view style="width: 100vw;height: 100vh;background-color: #F2F2F2;" v-else>
			<u-navbar title="我要认证" :bgColor="bgColor" leftIconSize='0px' placeholder='true'
				titleStyle='font-weight: bold;'>
			</u-navbar>
			<view style="display: flex;justify-content: center;margin-top: 10px;">
				<image src="https://www.gzxwsz.com/profile/upload/20241114111636.png" mode="widthFix"
					style="width: 30vw;">
				</image>
			</view>
			<view style="text-align: center;">
				恭喜您认证成功
			</view>
			<view style="text-align: center;color: #999999;font-size: 10px;margin-top: 5px;">
				您已在本平台认证成功，请开始您的快乐之旅吧
			</view>
			<view style="width: 80vw;margin: 0 auto;background-color: #FCDF30;margin-top: 60px;">
				<button @click="huidao" style="background-color: #FCDF30;font-size: 12px;">回到首页</button>
			</view>
		</view>
	</view>

</template>

<script setup>
	import {
		ref
	} from 'vue';
	import {
		onLoad
	} from '@dcloudio/uni-app'
	onLoad((option) => {
		console.log(option.id, 8888)
		if (option.id == 2) {
			judge.value = 2
		}
		if (option.id == 3) {
			judge.value = 3
		}
	})
	const judge = ref()
	const bgColor = ref("#ffffff")
	const huidao = () => {
		uni.switchTab({
			url: '/pages/homepage/index'
		});
	}
</script>

<style scoped lang="scss">

</style>